package cn.com.cglib;


import cn.com.cglib.point.AOPTargetDemo;
import cn.com.cglib.proxy.ProxyMethodInterceptor;
import cn.com.cglib.target.TargetDemo;

public class MainTest {

    public static void main(String[] args) {
        ProxyMethodInterceptor proxy = new ProxyMethodInterceptor();
        TargetDemo targetDemo = proxy.createObj(new TargetDemo(), new AOPTargetDemo());
        targetDemo.eat();
    }
}
